﻿/***********************************************************************
 * <copyright file="IAutoBusiness.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   LinhMC
 * Email:    linhmc@buca.vn
 * Website:
 * Create Date: Tuesday, October 22, 2013
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Collections.Generic;
using BusinessObjects.BussinessDictionary;

namespace DataObjects.StandartInterfaces.Dictionary
{
    /// <summary>
    /// Defines methods to access AutoBusiness
    /// </summary>
    /// <remarks>
    /// This is a database-independent interface. Implementations are database specific
    /// </remarks>
    public interface IAutoBusinessDao 
    {
        /// <summary>
        /// Gets the paged.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <param name="currentPage">The current page.</param>
        /// <returns></returns>
        List<AutoBusiness> GetPaged(int unitId, int currentPage);

        /// <summary>
        /// Gets the automatic business by unit.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <returns></returns>
        List<AutoBusiness> GetAutoBusinessByUnit(int unitId); 

        /// <summary>
        /// Gets the size of the page.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        
        /// <returns></returns>
        int GetPageSize(int unitId);

        

          /// <summary>
        /// Gets the autoBusinesss by unit.
        /// </summary>
        /// <param name="autoBusinessId">The unit identifier.</param>
        /// <returns></returns>
        AutoBusiness GetAutoBusiness(int autoBusinessId); 

        
        /// <summary>
        /// Inserts the autoBusiness.
        /// </summary>
        /// <param name="autoBusiness">The autoBusiness.</param>
        string InsertAutoBusiness(AutoBusiness autoBusiness);

        /// <summary>
        /// Updates the autoBusiness.
        /// </summary>
        /// <param name="autoBusiness">The autoBusiness.</param>
        string UpdateAutoBusiness(AutoBusiness autoBusiness);

        /// <summary>
        /// Deletes the autoBusiness.
        /// </summary>
        /// <param name="autoBusiness">The autoBusiness.</param>
        string DeleteAutoBusiness(AutoBusiness autoBusiness);
    }
}
